#ifndef SET_ALIYUN_LINK_DIALOG_H
#define SET_ALIYUN_LINK_DIALOG_H

#include <QDialog>

namespace Ui {
class set_aliyun_link_dialog;
}

class set_aliyun_link_dialog : public QDialog
{
    Q_OBJECT

private:
    qint8 aliyun_link_mode = 0;

    QString ProductKey;
    QString DeviceName;
    QString DeviceSecret;

public:
    explicit set_aliyun_link_dialog(QWidget *parent = nullptr);
    ~set_aliyun_link_dialog();

private slots:
    void on_confirm_btn_clicked();

    void on_linke_mode_com_currentIndexChanged(int index);

public:
    enum
    {
        Ethernet_mode = 0,
        dtu_4G_mode,
        nb_iot_mode,
    };

    static qint8 aly_link_mode;
    qint8 getAliyun_link_mode() const;

    static qint8 getAly_link_mode();

    QString getProductKey() const;

    QString getDeviceName() const;

    QString getDeviceSecret() const;

private:
    Ui::set_aliyun_link_dialog *ui;
};

#endif // SET_ALIYUN_LINK_DIALOG_H
